﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucSearchMonOnDefault.ascx.cs" Inherits="usercontrols_ucSearchMon" %>
 <fieldset class="FieldsetTitle">       
        <div class="std">
            <asp:DataList ID="dataListSP" runat="server" CellPadding="3" BackColor="#cccccc"
                BorderWidth="1px" CellSpacing="2" BorderStyle="None" BorderColor="#cccccc" GridLines="Both"
                DataKeyField="FoodId" RepeatDirection="Horizontal" RepeatColumns="3" >
                <SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#efefef"></SelectedItemStyle>
                <ItemStyle ForeColor="#8C4510" BackColor="#efefef"></ItemStyle>
                <FooterStyle ForeColor="#8C4510" BackColor="#003772"></FooterStyle>
                <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#003772"></HeaderStyle>
                <HeaderTemplate>
                    Danh Sách Sản Phẩm ưa thích nhất
                </HeaderTemplate>                
                <ItemTemplate>
                    <div class="product">
                        <div>
                            <table width="100%">
                                <tr>                                   
                                    <td>                                        
                                        <div id="Div2" class="productimage" runat="server">
                                            <a href='ChiTietSanPham.aspx?maSanPham=<%# Eval("FoodId") %>'>
                                                <img id="Img2" src='<%# Eval("Image") %>' alt="Chi tiết sản phẩm" height="75"
                                                    runat="server" />
                                            </a>
                                        </div>
                                    </td>                                                                       
                                    <td>     
                                    Mua hàng   
                                    <br />
                                    <%--<div id="Div1" class="productimage" runat="server"> --%>                                                                      
                                            <a href='ShoppingCart.aspx?maSanPham=<%# Eval("FoodId") %>'>
                                                <img id="Img1" src="../images/shopcart.gif" alt="Mua sản phẩm" 
                                                    runat="server" />
                                            </a>
                                           <%-- </div>--%>
                                    </td>                                    
                                </tr>
                                <tr>
                                    <td>
                                        <b>Tên Sản Phẩm : </b>
                                    </td>
                                    <td>
                                        '<%# DataBinder.Eval(Container.DataItem, "Name")%>'
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Giá : </b>
                                    </td>
                                    <td>
                                        '<%# DataBinder.Eval(Container.DataItem, "Cost")%>' &nbsp;NVD
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Đơn vị : </b>
                                    </td>
                                    <td>
                                        '<%# DataBinder.Eval(Container.DataItem, "unit")%>' 
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>Số Lượng tồn: </b>
                                    </td>
                                    <td>
                                        '<%# DataBinder.Eval(Container.DataItem, "inventory")%>'
                                    </td>
                                </tr>
                                  <tr>                                    
                                    <td colspan="2" style="color:Blue;border:1;">
                                        <a href='ChiTietSanPham.aspx?maSanPham=<%# Eval("FoodId") %>'> Chi tiết sản phẩm                                                
                                            </a>
                                    </td>
                                </tr>   
                            </table>
                        </div>
                    </div>
                </ItemTemplate>
                <AlternatingItemStyle HorizontalAlign="Left" />
            </asp:DataList>            
        </div>
    </fieldset>